package com.acme.task3;

public class Task3Arrays {
	public static void main(String[] args) {
		int[] array = new int[10];
		
		for (int i = 0; i<10; i++){
			array[i] = i+1;
		}
		
		System.out.println("Average value:" + avg(array));
		printMultiple();

	}
	static double avg(final int[] arr){
		int sum = 0;
		for(int i = 0; i<arr.length; i++){
			sum+=arr[i];
		}
		return sum/arr.length;
	}
	
	static void printMultiple(){
		for (int i = 1; i <= 50; i++) {
			
			if (i%3 == 0){
				System.out.println("Number " + i + " multiplies of three");
			}
		}
	}
}
